<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        body,html{
            width: 100%;
            height: 100%;
        }
     .container{
        width: 100%;
        height: 100%;
        background-color: antiquewhite;
        /* margin-left: auto; */
        /* margin-right: auto;  */
        margin: auto;
        display: flex;
        flex-direction: column;
    }
    .header{
        height: 50px;
        background-color: blueviolet;
        font-size: 16px;
        font-weight: bold;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-content: center;
        padding-left: 10px;
    }
    .main{
        flex: auto;
    }
    .footer{
        height: 30px;
        background-color: black;
    }
    .item{
        height: 50px;
        display: flex;
        flex-direction: row;
        border-bottom: 1px solid #2b2b2b;
    }
    .left{
        width: 50px;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-content: center;
    }
    .center{
        flex: auto;
        padding: 5px;
    }
    .right{
        width: 100px;
        color: #b2b2b2;
        font-size: 12px;
        display: flex;
        flex-direction: row;
        align-items: flex-end;
        justify-content: flex-end;
        padding-right: 10px;
    }
    img{
        width: 40px;
        height: 40px;
        border-radius: 20px;
    }
    .up{
       font-weight: bold;
       margin-top: 10px;
    }
    .down{
        font-size: 12px;
        color: #b2b2b2;
    }
    </style>
</head>
<body>
    <div class="container">
     <div class="header">Chat list</div>
     <div class="main">
        <div class="item">
            <div class="left"><img src="./$RM41L1G.jpg" alt="#"></div>
            <div class="center">
                <div class="up">joejoe</div>
                <div class="down">what's up</div>
            </div>
            <div class="right">
                <div>10:05 am</div>
            </div>
        </div>
        <div class="item">
            <div class="left"><img src="./$RM41L1G.jpg" alt="#"></div>
            <div class="center">
                <div class="up">joejoe</div>
                <div class="down">what's up</div>
            </div>
            <div class="right">
                <div>10:05 am</div>
            </div>
        </div> <div class="item">
            <div class="left"><img src="./$RM41L1G.jpg" alt="#"></div>
            <div class="center">
                <div class="up">joejoe</div>
                <div class="down">what's up</div>
            </div>
            <div class="right">
                <div>10:05 am</div>
            </div>
     </div> <div class="item">
        <div class="left"><img src="./$RM41L1G.jpg" alt="#"></div>
        <div class="center">
            <div class="up">joejoe</div>
            <div class="down">what's up</div>
        </div>
        <div class="right">
            <div>10:05 am</div>
        </div>
 </div> <div class="item">
    <div class="left"><img src="./$RM41L1G.jpg" alt="#"></div>
    <div class="center">
        <div class="up">joejoe</div>
        <div class="down">what's up</div>
    </div>
    <div class="right">
        <div>10:05 am</div>
    </div>
</div> <div class="item">
    <div class="left"><img src="./$RM41L1G.jpg" alt="#"></div>
    <div class="center">
        <div class="up">joejoe</div>
        <div class="down">what's up</div>
    </div>
    <div class="right">
        <div>10:05 am</div>
    </div>
</div> <div class="item">
    <div class="left"><img src="./$RM41L1G.jpg" alt="#"></div>
    <div class="center">
        <div class="up">joejoe</div>
        <div class="down">what's up</div>
    </div>
    <div class="right">
        <div>10:05 am</div>
    </div>
</div> <div class="item">
    <div class="left"><img src="./$RM41L1G.jpg" alt="#"></div>
    <div class="center">
        <div class="up">joejoe</div>
        <div class="down">what's up</div>
    </div>
    <div class="right">
        <div>10:05 am</div>
    </div>
</div>
     <div class="footer"></div>  
    </div>
</body>
</html>